<%@ page language="java"
         contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"
         import="com.shxt.hotel.background.User"
%>
<%
    if(session.getAttribute("id") == null){
        response.sendRedirect("../login.jsp");
    }else{
        request.setCharacterEncoding("UTF-8");
        int uid = Integer.parseInt(request.getParameter("uid"));
        int pid = Integer.parseInt(request.getParameter("pid"));
        
        User user = new User();
        int row = user.setUserPerm(uid, pid);
        
        response.sendRedirect("../hotel_vip_purchase.jsp");
    }
%>